{extend name='base'/}
{block name='content'}
<ol class="breadcrumb" style="background-color: #f9f9f9;padding:8px 0;margin-bottom:10px;">
	<li>
		<a href=""><i class="fa fa-cogs"></i>
			用户管理</a>
	</li>
	<li class="active">
		<a href="{:url('setAuth')}">设置权限</a>
	</li>
</ol>
<ul class="nav nav-tabs" role="tablist">
	<li ><a href="{:url('index')}">用户列表</a></li>
	<li ><a href="{:url('add')}">用户添加</a></li>
	<li class="active"s><a href="{:url('setAuth')}">设置权限</a></li>
</ul>
<form action="" method="POST" class="form-horizontal" role="form">
	<div class="panel panel-default">
		<div class="panel-heading">
			<h3 class="panel-title">给管理员【{$userData['username']}】设置权限</h3>
		</div>
		<div class="panel-body">
			<div class="checkbox">
				{foreach name="groupData" item="v"}
				<label>
					<input type="checkbox" name="group_id[]" value="{$v['id']}">{$v['title']}
				</label>&nbsp;&nbsp;
				{/foreach}
			</div>
		</div>
	</div>
	<input type="text" hidden name="uid" value="{:input('param.uid')}">
	<button class="btn btn-primary">提交</button>
</form>
{/block}